import {$} from '../library/jquery.js';




         //倒计时
         let futuer = new Date(2021, 6, 30, 18, 0, 0); // 未来时间



         setInterval(function() {
             let current = new Date();
             let ms = futuer - current; //  时间运算会自动转化为时间戳进行运算
             let s = ms / 1000; // 获得秒
    
             let hour = parseInt(s % 86400 / 3600);
             let min = parseInt(s % 3600 / 60);
             let sec = parseInt(s % 60);
             if(hour<10) hour='0'+hour;
             if(min<10) min='0'+min;
             if(sec<10) sec='0'+sec;
            $('.count-span1').text(hour);
            $('.count-span2').text(min);
            $('.count-span3').text(sec);
         }, 1000);

